package com.teach.mapper;

import com.teach.entity.TbUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

/**
 * @Entity com.teach.entity.TbUser
 */
@Mapper
public interface TbUserMapper extends BaseMapper<TbUser> {

    @MapKey("id")
    List<Map> selectByUid(@Param(value = "uid") Integer uid);

    @MapKey("id")
    List<Map> selectConunt(@Param(value = "uid") int uid, @Param("fname") String fname);
}




